home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 11
/
Cream of the Crop 11-2.iso
/
extra_2
/
regcode.zip
/
REGCODE.H
< prev
next >
Wrap
C/C++ Source or Header
|
1995-10-28
|
2KB
|
57 lines
//////////////////////////////////////////////////////////////////
/* For C programs use the following prototype */
int regcode( char* instring, /* user's name */
double incode, /* author's code */
char* outcode, /* registration code */
long copyright /* removes copyright notice */
)
////////////////////////////////////////////////////////////////
// If you are calling RegCode from a C++ program, include the
// following code:
#include <windows.h>
#ifndef __regcode_h
#define __regcode_h
#ifdef __cplusplus
extern "C" {
#endif
int _pascal regcode( LPSTR in_string,
double incode,
LPSTR outcode,
LONG copyright );
#ifdef __cplusplus
} // extern "C"
#endif
#endif // __regcode_h
////////////////////////////////////////////////////////////////
If using Visual Basic use:
Declare Function regcode Lib "c:\vb\regdemo\regcode.dll"
( ByVal ustring As String,
ByVal incode As Double,
ByVal outcode As String,
ByVal copyright As Long ) As Integer
Dim x As Integer
Dim incode As Double
Dim outcode As String * 10
Dim ustring As String * 64
Dim copyright As Long
...
x = regcode( ustring, incode, outcode, copyright )
The path specified in the Declare statement must be modified to suit
your path. The Declare statement must appear on a single line.
/////////////////////////////////////////////////////////////////////